#include <stdio.h>
#include <math.h>
//展开
#if 0
int add(int x,int y);
int sub(int x,int y);
int mul(int x,int y);
int div(int x,int y);
int mypow(int x,int y);
#endif
//简写
#if 1
void j(void);
#endif
int main(int argc, char const *argv[])
{
#if 0
    //展开   
    int ret1 = add(10,20);
    int ret2 = sub(10,20);
    int ret3 = mul(10,20);
    int ret4 = div(10,20);
    int ret5 = mypow(10,5);

    printf("x+y=%d\n",ret1);
    printf("x-y=%d\n",ret2);
    printf("x*y=%d\n",ret3);
    printf("x/y=%d\n",ret4);
    printf("x^y=%d\n",ret5);
#endif

#if 1
    //简写
    j();
#endif
    return 0;
}
//简写
#if 1
void j(void)
{
    int x=10,y=20;
    int add = x+y;
    int sub = x-y;
    int mul = x*y;
    int div = x/y;
    int y2=5;
    int mypow = pow(x,y2);
    printf("x+y=%d\n",add);
    printf("x-y=%d\n",sub);
    printf("x*y=%d\n",mul);
    printf("x/y=%d\n",div);
    printf("x^y=%d\n",mypow);
    

}
#endif
//展开
#if 0
int add(int x,int y)
{
    return x+y;
}

int sub(int x,int y)
{
    return x-y;
}

int mul(int x,int y)
{
    return x*y;
}

int div(int x,int y)
{
    return x/y;
}

int mypow(int x,int y)
{
    return pow(x,y);
}
#endif